package test.yzx.pproject.util;

import android.content.Context;
import android.util.Log;

import yzx.common.util.ManifestUtil;

public class Logger {

    private final static String TAG = "-------->>";
    private static boolean showLog = false;


    public static void init(Context context){
        String logTag = ManifestUtil.getStringMetaData(context, "showLog");
        showLog = logTag!=null && logTag.length()>0;
    }

    public static void e(String str){
        if(showLog)
            Log.e(TAG, str);
    }

}
